$(function() {
	$("#form").validate({
		rules : {
			"contractmortgage.mortgagetype" : {required : true},
			"contractmortgage.mortgagemoney" : {required : true,number:true},
			"contractmortgage.start" : {required : true},
			"contractmortgage.end" : {required : true},
			"contractmortgage.contractensuredate" : {required : true},
		},
			messages : {
			"contractmortgage.mortgagetype" : {required : '请选择合同类型!'},
			"contractmortgage.mortgagemoney" : {required:'请输入抵押金额!',number:"抵押金额只能为数字！"},
			"contractmortgage.start" : {required : '请选择合同开始日期!'},
			"contractmortgage.end" : {required : '请选择合同终止日期!'},
			"contractmortgage.contractensuredate" : {required : '请选择合同签订日期!'},
		}
	});
})
